import Layout from '@/views/layout/Layout'

export default {
  path: '/newCarStock',
  component: Layout,
  name: 'newCarStock',
  alwaysShow: true,
  meta: { title: 'newCarStock', icon: 'xckc' },
  children: [
    // 新车销售管理
    {
      path: 'newCarSaleManagement',
      name: 'newCarSaleManagement',
      redirect: '/newCarStock/newCarSaleManagement/pricePolicyMaking',
      alwaysShow: true,
      component: () =>
        import('@/views/pre-sale/newCarStock/newCarSaleManagement/index'),
      meta: { title: 'newCarSaleManagement' },
      children: [
        // 价格政策制定
        {
          path: 'pricePolicyMaking',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/newCarSaleManagement/pricePolicyMaking/index'
            ),
          name: 'pricePolicyMaking',
          meta: { title: 'pricePolicyMaking' }
        },
        // 新增价格政策制定
        {
          path: 'addpricePolicyMaking',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/newCarSaleManagement/pricePolicyMaking/add'
            ),
          name: 'addpricePolicyMaking',
          hidden: true,
          meta: { title: 'addpricePolicyMaking' }
        },
        // 编辑价格政策制定
        {
          path: 'editpricePolicyMaking',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/newCarSaleManagement/pricePolicyMaking/add'
            ),
          name: 'editpricePolicyMaking',
          hidden: true,
          meta: { title: 'editpricePolicyMaking' }
        },
        // 编辑价格政策制定
        {
          path: 'viewpricePolicyMaking',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/newCarSaleManagement/pricePolicyMaking/add'
            ),
          name: 'viewpricePolicyMaking',
          hidden: true,
          meta: { title: 'viewpricePolicyMaking' }
        }
      ]
    },
    // 厂家批零目标
    {
      path: 'manufacturerTarget',
      component: () =>
        import('@/views/pre-sale/newCarStock/manufacturerTarget'),
      name: 'manufacturerTarget',
      hidden: false,
      meta: { title: 'manufacturerTarget' }
    },
    // 新增厂家批零目标
    {
      path: 'addManufacturerTarget',
      component: () =>
        import('@/views/pre-sale/newCarStock/manufacturerTarget/add/add'),
      name: 'addManufacturerTarget',
      hidden: true,
      meta: { title: 'addManufacturerTarget' }
    },
    // // 门店车辆统计
    // {
    //   path: 'storeCarStatistics',
    //   component: () =>
    //     import('@/views/pre-sale/newCarStock/storeCarStatistics'),
    //   name: 'storeCarStatistics',
    //   hidden: false,
    //   meta: { title: 'storeCarStatistics' }
    // },
    // 配车合同
    {
      path: 'carMatchingContract',
      component: () =>
        import('@/views/pre-sale/newCarStock/carMatchingContract'),
      name: 'carMatchingContract',
      hidden: false,
      meta: { title: 'carMatchingContract' }
    },
    // 新增配车合同
    {
      path: 'addCarMatchingContract',
      component: () =>
        import('@/views/pre-sale/newCarStock/carMatchingContract/add/add'),
      name: 'addCarMatchingContract',
      hidden: true,
      meta: { title: 'addCarMatchingContract' }
    },
    // 编辑配车合同
    {
      path: 'editCarMatchingContract',
      component: () =>
        import('@/views/pre-sale/newCarStock/carMatchingContract/add/add'),
      name: 'editCarMatchingContract',
      hidden: true,
      meta: { title: 'editCarMatchingContract' }
    },
    // 资金利息
    {
      path: 'capitalInterest',
      component: () =>
        import('@/views/pre-sale/newCarStock/capitalInterest/index'),
      name: 'capitalInterest',
      meta: { title: 'capitalInterest' }
    },
    {
      path: 'edit-capitalInterest/:id',
      component: () =>
        import(
          '@/views/pre-sale/newCarStock/capitalInterest/editCapitalInterest'
        ),
      name: 'editCapitalInterest',
      hidden: true,
      props: true,
      meta: { title: 'editCapitalInterest' }
    },
    {
      path: 'add-capitalInterest',
      component: () =>
        import(
          '@/views/pre-sale/newCarStock/capitalInterest/editCapitalInterest'
        ),
      name: 'addCapitalInterest',
      hidden: true,

      meta: { title: 'addCapitalInterest' }
    },
    // 挑拨申请
    {
      path: 'transferApply',
      component: () =>
        import('@/views/pre-sale/newCarStock/transferApply/index'),
      name: 'transferApply',
      meta: { title: 'transferApply' }
    },
    {
      path: 'edit-transferApply/:id',
      component: () =>
        import('@/views/pre-sale/newCarStock/transferApply/editTransferApply'),
      name: 'editTransferApply',
      hidden: true,
      props: true,
      meta: { title: 'editTransferApply' }
    },
    {
      path: 'add-transferApply',
      component: () =>
        import('@/views/pre-sale/newCarStock/transferApply/editTransferApply'),
      name: 'addTransferApply',
      hidden: true,
      meta: { title: 'addTransferApply' }
    },
    // 移库申请
    {
      path: 'moveStorageApply',
      component: () =>
        import('@/views/pre-sale/newCarStock/moveStorageApply/index'),
      name: 'moveStorageApply',
      meta: { title: 'moveStorageApply' }
    },
    {
      path: 'edit-moveStorageApply/:id',
      component: () =>
        import(
          '@/views/pre-sale/newCarStock/moveStorageApply/editMoveStorageApply'
        ),
      name: 'editMoveStorageApply',
      hidden: true,
      props: true,
      meta: { title: 'editMoveStorageApply' }
    },
    {
      path: 'add-moveStorageApply',
      component: () =>
        import(
          '@/views/pre-sale/newCarStock/moveStorageApply/editMoveStorageApply'
        ),
      name: 'addMoveStorageApply',
      hidden: true,
      meta: { title: 'addMoveStorageApply' }
    },

    // 入库管理
    {
      path: 'putInStorageManagements',
      name: 'putInStorageManagements',
      redirect: '/newCarStock/putInStorageManagement/purchaseReturn',
      alwaysShow: true,
      component: () =>
        import('@/views/pre-sale/newCarStock/putInStorageManagement/index'),
      meta: { title: 'putInStorageManagement', icon: 'activity' },
      children: [
        // 采购入库
        {
          path: 'purchaseInventory',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/putInStorageManagement/purchaseInventory/index'
            ),
          name: 'purchaseInventory',
          meta: { title: 'purchaseInventory' }
        },
        {
          path: 'editPurchaseInventory/:id',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/putInStorageManagement/purchaseInventory/edit'
            ),
          hidden: true,
          props: true,
          name: 'editPurchaseInventory',
          meta: { title: 'editPurchaseInventory' }
        },

        // 调拨入库
        {
          path: 'transferInventory',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/putInStorageManagement/transferInventory/index'
            ),
          name: 'transferInventory',
          meta: { title: 'transferInventory' }
        },
        {
          path: 'transferInventoryInfo/:id',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/putInStorageManagement/transferInventory/edit'
            ),
          hidden: true,
          props: true,
          name: 'transferInventoryInfo',
          meta: { title: 'transferInventoryInfo' }
        },
        // 其他入库
        {
          path: 'otherInventory',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/putInStorageManagement/otherInventory/index'
            ),
          name: 'otherInventory',
          meta: { title: 'otherInventory' }
        },
        {
          path: 'addOtherInventoryInfo',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/putInStorageManagement/otherInventory/edit'
            ),
          hidden: true,
          name: 'addOtherInventoryInfo',
          meta: { title: 'addOtherInventoryInfo' }
        },
        {
          path: 'editOtherInventoryInfo/:id',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/putInStorageManagement/otherInventory/edit'
            ),
          hidden: true,
          props: true,
          name: 'editOtherInventoryInfo',
          meta: { title: 'editOtherInventoryInfo' }
        },
        // 退货入库
        {
          path: 'returnInventory',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/putInStorageManagement/returnInventory/index'
            ),
          name: 'returnInventory',
          meta: { title: 'returnInventory' }
        },
        // editReturnInventory:编辑退货入库
        {
          path: 'editReturnInventory/:id',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/putInStorageManagement/returnInventory/edit'
            ),
          hidden: true,
          props: true,
          name: 'editReturnInventory',
          meta: { title: 'editReturnInventory' }
        }
      ]
    },

    // 出库管理
    {
      path: 'putOutStorageManagements',
      name: 'putOutStorageManagements',
      redirect: '/newCarStock/putOutStorageManagement/purchaseReturn',
      alwaysShow: true,
      component: () =>
        import('@/views/pre-sale/newCarStock/putOutStorageManagement/index'),
      meta: { title: 'putOutStorageManagement', icon: 'activity' },
      children: [
        // 采购退货
        {
          path: 'returnManagement',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/putOutStorageManagement/purchaseReturn/index'
            ),
          name: 'returnManagement',
          meta: { title: 'returnManagement' }
        },
        // 调拨出库
        {
          path: 'transferPutOut',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/putOutStorageManagement/transferStockOut/index'
            ),
          name: 'transferPutOut',
          meta: { title: 'transferPutOut' }
        },
        // 调拨出库信息
        {
          path: 'transferPutOutDetail',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/putOutStorageManagement/transferStockOut/edit'
            ),
          hidden: true,
          name: 'transferPutOutDetail',
          meta: { title: 'transferPutOutDetail' }
        },
        // 销售出库
        {
          path: 'salePutOut',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/putOutStorageManagement/salesDelivery/index'
            ),
          name: 'salePutOut',
          meta: { title: 'salePutOut' }
        },
        // 编辑销售出库
        {
          path: 'editSalePutOut',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/putOutStorageManagement/salesDelivery/edit'
            ),
          hidden: true,
          name: 'editSalePutOut',
          meta: { title: 'editSalePutOut' }
        }
      ]
    },
    // 库存管理
    {
      path: 'storageManagement',
      name: 'storageManagement',
      redirect: '/newCarStock/storageManagement/inventoryInformation',
      alwaysShow: true,
      component: () =>
        import('@/views/pre-sale/newCarStock/storageManagement/index'),
      meta: { title: 'storageManagement', icon: 'activity' },
      children: [
        // 库存信息
        {
          path: 'inventoryInformation',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/storageManagement/inventoryInformation/index'
            ),
          name: 'inventoryInformation',
          meta: { title: 'inventoryInformation' }
        },
        // 车辆轨迹
        {
          path: 'vehicleTrajectory',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/storageManagement/vehicleTrajectory/index'
            ),
          name: 'vehicleTrajectory',
          meta: { title: 'vehicleTrajectory' }
        }
      ]
    },
    // 新车预估返利
    {
      path: 'newCarRebate',
      name: 'newCarRebate',
      redirect: '/newCarStock/newCarRebate/carEstimatedRebate',
      alwaysShow: true,
      component: () =>
        import('@/views/pre-sale/newCarStock/newCarRebate/index'),
      meta: { title: 'newCarRebate', icon: 'activity' },
      children: [
        // 预估返利
        {
          path: 'carEstimatedRebate',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/newCarRebate/carEstimatedRebate/index'
            ),
          name: 'carEstimatedRebate',
          meta: { title: 'carEstimatedRebate' }
        },
        {
          path: 'rebateInformation',
          component: () =>
            import(
              '@/views/pre-sale/newCarStock/newCarRebate/carEstimatedRebate/add'
            ),
          hidden: true,
          name: 'rebateInformation',
          meta: { title: 'rebateInformation' }
        }
      ]
    }
  ]
}
